package cn.jiedh.app.meiweidk.response;

/**
 * 响应服务
 * 
 * @author knife
 * 
 */
public class BaseResponse<T> {

	private int code;
	private String message;
	private boolean encrypt;
	private T data;

	public BaseResponse() {
	}

	public BaseResponse(int code) {
		this.code = code;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public boolean isEncrypt() {
		return encrypt;
	}

	public void setEncrypt(boolean encrypt) {
		this.encrypt = encrypt;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}
	public boolean isSuccess(){
		return  code==0;
	}
}
